<?php
    class Admincp_Form_ValidateSupport
    {
        public function validName($name)
        {
            $validate = new Zend_Validate_StringLength(1,50);
		    if($validate->isValid($name)) {
		        return true;
		    }
		    else {
		        return false;
		    }
        }
        
        public function validPhone($phone)
        {
            $validate = new Zend_Validate_StringLength(1,15);
		    if($validate->isValid($phone)) {
		        return true;
		    }
		    else {
		        return false;
		    }
        }
        
        public function validNickname($nickname)
        {
            $validate = new Zend_Validate_StringLength(1,50);
		    if($validate->isValid($nickname)) {
		        return true;
		    }
		    else {
		        return false;
		    }
        }
    }
